home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #2 / Monster Media No. 2 (Monster Media)(1994).ISO / health / foodsm.zip / INSTALLA.BAT < prev    next >
DOS Batch File  |  1994-06-01  |  2KB  |  75 lines

  1. @ECHO OFF
  2. cls
  3. echo.
  4. echo If you are installing over a previous version its a good idea to back
  5. echo up the files in your Pantry. Press 'Ctrl Break' to stop installation
  6. echo and backup files. (See Pantry file info on how to backup files).
  7. echo.
  8. echo You MUST specify the drive and/or path to install to e.g. 'installa a:' 
  9. echo or 'installa c:\eatwell'.  Disk must have at least 720K of room.
  10. echo.
  11. echo This install puts the program onto a floppy or in a drive and directory
  12. echo specified by you.  You must run the install from the subdirectory where
  13. echo you have the original files.  The program asks you to copy certain
  14. echo files in case you have an existing copy of the program; if you are 
  15. echo copying over a previous version and wish to save Pantry information then
  16. echo answer 'no' to the appropriate log file to save the old file which the
  17. echo new program can use.
  18. echo. 
  19. echo Enter 'Ctrl Break' or turn the computer off and then on to stop install
  20. echo now if desired or press any key to continue. Good Luck and Have a Great Day!
  21. echo.
  22. pause
  23. xcopy eatwell.exe %1\
  24. if errorlevel 5 goto disker
  25. if errorlevel 4 goto room
  26. if errorlevel 1 goto wrongdir
  27. xcopy *.dat %1\
  28. xcopy *.cfg %1\
  29. xcopy *.hlp %1\
  30. xcopy *.pif %1\
  31. xcopy *.bgi %1\
  32. xcopy prolog.err %1\
  33. xcopy *. %1\ /p
  34. xcopy *.bat %1\
  35. xcopy vendor.doc %1\
  36. xcopy *.diz %1\
  37. goto exit
  38. :wrongdir
  39. echo .
  40. echo You did not run install from source directory; change to the proper
  41. echo drive and/or directory and rerun install
  42. echo .
  43. pause
  44. goto exit2
  45. :room
  46. echo .
  47. echo There is not enough room on your destination disk, you do not
  48. echo have enough memory, or you specified an incorrect drive.
  49. echo .
  50. pause
  51. goto exit2
  52. :disker
  53. echo.
  54. echo Disk write error occured
  55. echo.
  56. pause
  57. goto exit2
  58. :exit
  59. cls
  60. echo.
  61. echo  You must change to the appropriate drive and/or directory and type
  62. echo  'eatwell' and enter to run the program.   For example from DOS:
  63. echo    To change to the a: drive type 'a:' and Enter, or
  64. echo    To change to the eatwell directory on drive c - type 'cd c:\eatwell'
  65. echo    and enter; then type 'eatwell' and press Enter.
  66. echo.
  67. echo  From Windows file manager click on the appropriate directory and 
  68. echo    click on 'eatwell.exe' to run the program.  The info file in the
  69. echo    Pantry tells you how to create an icon to run the program if
  70. echo    desired.
  71. echo.
  72. pause
  73. echo.
  74. :exit2
  75.